9 Compile and Run a Program without a Java IDE > 9.2 Compile

9.2
•
Launch a Command Prompt. This can be done from the Programs menu or by typing „cmd“ at the Run... prompt in the Start menu.
•
Compile the program with the SDK. Examples of build batch files can be found in each sam­ple program found in the examples directory, \Siemens\SMTK\<productname> \wtk\src\example.
•
If the compile was successful the program can be run from the command line. Examples of run batch files can be found in the examples directories listed above as well.
The batch files for compiling and running the samples refer to master batch files in the …\Sie­mens\SMTK\<productname>\wtk\bin directory and use the system environment variables IMPNG_JDK_DIR and IMPNG_DIR. IMPNG_JDK_DIR points to the root directory of the installed JDK and IMPNG_DIR points to the root directory of the Siemens-SMTK-<product­name>-IMPNG installation. The installation process sets these environment variables. A mod­ification is usually not necessary. They may be modified as requested (e.g. when switching to a different JDK) via the advanced system properties.